package com.cartrentalsystem.utils;


import org.mindrot.jbcrypt.BCrypt;

public class BcryptUtils {
    public static String encrypt(String password) {
        String salt = BCrypt.gensalt();
        return BCrypt.hashpw(password, salt);

    }

    public static boolean check(String entryPassword, String hashPassword) {
        return BCrypt.checkpw(entryPassword, hashPassword);
    }
}
